package com.tanhua.manage;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@MapperScan("com.tanhua.manage.mapper")
@ComponentScan(basePackages = "com.tanhua") //修改默认的扫描包范围
@EnableScheduling  //开启基于注解的定时任务
public class MyTanhuaManageApplication {

    public static void main(String[] args) {
        SpringApplication.run(MyTanhuaManageApplication.class, args);
    }

}
